package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllorders() (error, []models.OrderView, int64) {

	var err, ordersData, total = dao.GetAllorders()
	return err, ordersData, total
}


func Delorders(ordersid string) error {
	err := dao.Delorders(ordersid)
	return err
}

func Updateorders(ordersdata models.Orders) error{
	err:= dao.Updateorders(ordersdata)
	return err
}

func Addorders(ordersdata models.Orders) (error) {
	err := dao.Addorders(ordersdata)
	return err
}
